package com.tn.jinq;

/**
 * Marks a context that allows data objects to be deleted with a simple key.
 *
 * @see com.tn.jinq.Context
 */
public interface KeyedDeletable<K>
{
  /**
   * Deletes the <code>value</code> using the specified <code>key</code>.
   *
   * @param key the key.
   *
   * @throws DeleteException if an error occurs during the delete.
   */
  public void delete(K key) throws DeleteException;
}
